package com.kfm.goods.service;

import com.kfm.goods.domain.User;
import com.kfm.goods.domain.UserDTO;
import com.kfm.goods.ex.ServiceException;

import java.util.List;

public interface UserService {

    /**
     * 用户登录
     *
     * @param user 登录用户对象, username 和 password 不为空
     * @return 登录结果的对象
     */
    User login(User user) throws ServiceException;


    List<UserDTO> findAll(int page, int pageSize, User user) throws ServiceException;

    User findById(String id);


    void update(User user) throws ServiceException;

}
